package com.jch.dm.chapter_13_visitor;

/**
 * @author: Administrator
 * @create: 2020/04/01 19:19
 **/
public class File extends Entry  {

    private String name;
    private int size;

    public File(String name, int size) {
        this.name = name;
        this.size = size;
    }

    /**
     * 获取名称
     *
     * @return 名称
     */
    @Override
    public String getName() {
        return name;
    }

    /**
     * 获取大小
     *
     * @return 大小
     */
    @Override
    public int getSize() {
        return size;
    }

    @Override
    public void accept(Visitor v) {

    }
}
